package com.example.quartz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.quartz.bean.entity.QrtzJobDetailsEntity;
import com.example.quartz.bean.entity.QuartzEntity;
import com.example.quartz.bean.mapper.QrtzJobDetailsMapper;
import com.example.quartz.service.QrtzJobDetailsService;
import org.springframework.stereotype.Service;

/**
 *
 * @author: luojm
 * @create: 2020-07-27 14:35:02
 */
@Service
public class QrtzJobDetailsServiceImpl extends ServiceImpl<QrtzJobDetailsMapper, QrtzJobDetailsEntity> implements QrtzJobDetailsService {


    @Override
    public Page<QuartzEntity> listQuartz(Page<QuartzEntity> page, String jobName) {
        return baseMapper.listQuartz(page, jobName);
    }

    @Override
    public Long countQuartz() {
        return baseMapper.countQuartz();
    }
}
